/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package com.architexa.org.eclipse.gef.tools;

import com.architexa.org.eclipse.gef.EditPart;

/**
 * A DragTracker whose job it is to deselect all {@link EditPart EditParts}.
 */
public class DeselectAllTracker
	extends SelectEditPartTracker
{

/**
 * Constructs a new DeselectAllTracker.
 * @param ep the edit part that returned this tracker
 */
public DeselectAllTracker(EditPart ep) {
	super(ep);
}

/**
 * Calls {@link com.architexa.org.eclipse.gef.EditPartViewer#deselectAll()}.
 * @see com.architexa.org.eclipse.gef.tools.AbstractTool#handleButtonDown(int)
 */
protected boolean handleButtonDown(int button) {
	getCurrentViewer().deselectAll();
	return true;
}

}
